
export default {
    id: "PrescriptionEntity",
    returnTotal:true,
    modelFile: "prescription/dataset/PrescriptionEntity.xml",
    sortFields: [
        "record_id",
        "record_status",
        "create_by",
        "create_date",
        "update_by",
        "update_date",
        "prescription_type",
        "prescription_nature",
        "opinion",
        "chief_complaint",
        "history_of_present_illness",
        "past_history",
        "primary_diagnosis",
        "allergies",
        "secondary_diagnosis",
        "signature",
        "medicate_id",
        "patient_id",
        "doctor_id",
        "doctor_name",
        "drug_store_id",
        "drug_store_name",
        "patient_name",
        "patient_sex",
        "patient_age",
        "patient_weight",
        "parient_phone",
        "take_drug_number",
        "money",
        "payment_or_not",
        "take_drug",
        "enterprise_desc",
        "enterprise_id",
        "payment_id",
        "payment_type"

    ],
    fields: {
        record_id: {
            name: "record_id", //字段ID
            label: "记录编号", //字段描述
            dbtype: "dbString", //数据类型

        },

        record_status: {
            name: "record_status", //字段ID
            label: "状态", //字段描述
            dbtype: "dbInt", //数据类型
            length: 25,
            readonly: true,
        },
        create_by: {
            name: "create_by", //字段ID
            label: "创建人", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        create_date: {
            name: "create_date", //字段ID
            label: "创建时间", //字段描述
            dbtype: "dbDate", //数据类型
            readonly: true,

        },
        update_by: {
            name: "update_by", //字段ID
            label: "更新人", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },


        update_date: {
            name: "update_date", //字段ID
            label: "更新时间", //字段描述
            dbtype: "dbDate", //数据类型

        },
        prescription_type: {
            name: "prescription_type", //字段ID
            label: "处方类型", //字段描述
            dbtype: "dbString", //数据类型   
            readonly: true,
        },

        prescription_nature: {
            name: "prescription_nature", //字段ID
            label: "处方性质", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        opinion: {
            name: "opinion", //字段ID
            label: "处理意见", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        chief_complaint: {
            name: "chief_complaint", //字段ID
            label: "主诉", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        history_of_present_illness: {
            name: "history_of_present_illness", //字段ID
            label: "现病史", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },

        past_history: {
            name: "past_history", //字段ID
            label: "既往史", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },

        primary_diagnosis: {
            name: "primary_diagnosis", //字段ID
            label: "主诊", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        allergies: {
            name: "allergies", //字段ID
            label: "过敏史", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        secondary_diagnosis: {
            name: "secondary_diagnosis", //字段ID
            label: "次诊", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        signature: {
            name: "signature", //字段ID
            label: "医生签名", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        medicate_id: {
            name: "medicate_id", //字段ID
            label: "用药编号", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        patient_name: {
            name: "patient_name", //字段ID
            label: "患者姓名", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        patient_id: {
            name: "patient_id", //字段ID
            label: "患者编号", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        patient_sex: {
            name: "patient_sex", //字段ID
            label: "患者性别", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        patient_age: {
            name: "patient_age", //字段ID
            label: "患者年龄", //字段描述
            dbtype: "dbInt", //数据类型
            readonly: true,
        },
        patient_weight: {
            name: "patient_weight", //字段ID
            label: "患者体重", //字段描述
            dbtype: "dbFloat", //数据类型
            readonly: true,
        },
        doctor_name: {
            name: "doctor_name", //字段ID
            label: "医生姓名", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        doctor_id: {
            name: "doctor_id", //字段ID
            label: "医生编号", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },

        drug_store_id: {
            name: "drug_store_id", //字段ID
            label: "药店编号", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        drug_store_name: {
            name: "drug_store_name", //字段ID
            label: "药店名称", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        parient_phone: {
            name: "parient_phone", //字段ID
            label: "患者手机", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        take_drug_number: {
            name: "take_drug_number", //字段ID
            label: "取药码", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        money: {
            name: "money", //字段ID
            label: "金额", //字段描述
            dbtype: "dbFloat", //数据类型
            readonly: true,
        },
        payment_or_not: {
            name: "payment_or_not", //字段ID
            label: "是否付款", //字段描述
            dbtype: "dbBoolean", //数据类型
            readonly: true,
        },
        take_drug: {
            name: "take_drug", //字段ID
            label: "是否取药", //字段描述
            dbtype: "dbBoolean", //数据类型
            readonly: true,
        },
        enterprise_desc: {
            name: "enterprise_desc", //字段ID
            label: "企业名称", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        enterprise_id: {
            name: "enterprise_id", //字段ID
            label: "企业ID", //字段描述
            dbtype: "dbString", //数据类型
            readonly: true,
        },
        payment_type: {
            name: "payment_type", //字段ID
            label: "付款类型", //字段描述
            dbtype: "dbString", //数据类型

        },
        payment_id: {
            name: "payment_id", //字段ID
            label: "付款单号", //字段描述
            dbtype: "dbString", //数据类型

        },
    }
}
